#!/bin/bash
file="gg"
size=2
min_size=1
#mencoder &> /dev/null &
ls -l / -R &> $file  &
while (( $min_size < $size ))
do
	size=`ls -l $file | awk '{print($5)}'`
	echo $size
	sleep 1s
	size2=`ls -l $file | awk '{print($5)}'`
	echo $size2
	echo
	size=`expr $size2 - $size`
done
kill `jobs -l | awk '{print($2)}'`